- Article
- 2018-12-28
Здравствуйте, итак, чтобы добавить свою модель рук зомби с бомбой нам понадобиться:
1) Сама модель рук с бомбой.
2) Немного мозгов.
Начнем:
Сначала нужно добавить инклуд hamsandwich и fakemeta_util, если они у вас не подключены!
Затем ищем "public plugin_init()" и перед ним добавляем:
#define linux_diff_weapon 4
#define m_pPlayer 41
#define GRENADE "тут мы прописываем путь к нашей модели бомбы"
Далее в тело функции plugin_init() вставляем следующий код:
new const GRENADES_ENTITY[][] = { "weapon_hegrenade", "weapon_flashbang", "weapon_smokegrenade" };
for(new i = 0; i < sizeof GRENADES_ENTITY; i++)
RegisterHam(Ham_Item_Deploy, GRENADES_ENTITY[i], "Grenade_DeployPost", true);
Потом мы ищем "public plugin_precache()" и в нем пишем следующее:
engfunc(EngFunc_PrecacheModel, GRENADE);
И теперь в любую часть исходника вставляем такой код:
public Grenade_DeployPost(iItem)
{
new iPlayer = get_pdata_cbase(iItem, m_pPlayer, linux_diff_weapon);
if(!zp_get_user_zombie(iPlayer) || zp_get_user_nemesis(iPlayer))
return;
if(zp_get_user_zombie_class(iPlayer) == gl_iZombieClass)
set_pev(iPlayer, pev_viewmodel2, GRENADE);
}
переменная = zp_register_zombie_class(и тут много букав);
Отсюда вы берете "переменную" и заменяете gl_iZombieClass на свою.
Теперь компилируем плагин и радуемся. Если заметите ошибки в статье, напишите в комментарии.
Donate you can do to the author Universe, a gift in the form of a donation to his electronic piggy bank ;)
%25
Discount on all purchases
builds until September 16, 2024
Especially for you - Гость
![](https://vk.com/images/emoji/2764_2x.png)
Buy an assembly
![](http://www.tb-team.com/uploads/fotos/foto_9428.jpg)
[CS 1.6] Weapon Model - Ethereal Xmas
one of the best p90 models, we had on the server. ++
![](http://www.tb-team.com/uploads/fotos/foto_9979.jpg)
[CS 1.6] Knife Model - Xmas Candy Axe
nice xmas model
![](http://www.tb-team.com/uploads/fotos/foto_9979.jpg)
[CS 1.6] Weapon Model - White Railcannon Xmas
Nice model thanks
![](http://www.tb-team.com/uploads/fotos/foto_9979.jpg)
[CS 1.6] Weapon Model - Royale Dragon M4a1
Nice model thanks
![](http://tb-team.com/uploads/fotos/foto_1.png)
[ZP] Zombie Class - Revenant Raving (Переделка Fire)
happy to hear that from you ! enjoy
ReHLDS (Reverse-engineered) - this is a new step forward that gives a second wind to our servers. ReHLDS works 2 times faster than HLDS.
AMXModX is a Metamod add-on that allows you to create new modifications for Half-Life in the Pawn language
Reunion is a continuation of Dproto for ReHLDS. This is a metamod plugin that allows you to log into the 47/48 Non-Steam server.
Revoice is a Metamod plugin that allows voice chat between non-steam and steam clients.
The new Metamod-r contains a huge number of performance optimizations and much cleaner code. The kernel was written using a JIT compiler.
Ultimate Unprecacher is a plugin for MetaMod, it works on the principle of disabling unnecessary resources on your server, thereby you can free up space for resources for your plugins, using this module you can get rid of error 512!
ReAuthCheck - this is a Metamod plugin that checks your players for validity, with this module for REHLDS you can protect your server from bots that constantly spam ads or simply clog up a slot on the server!
NetBufExtender or NBEX - This is a metamod plugin that expands the пїЅInternet bufferпїЅ: server and client buffers (not 100% guaranteed). Expands up to 64 kb. This means that players are less likely to be kicked with the error "Reliable channel overflowed"".
UINO пїЅ metamod plugin that allows you to remove unnecessary fields from userinfo(setinfo) when the engine passes it to other players on the server. This measure reduces the amount of data transferred and slightly reduces the chance of being kicked with "Reliable channel overflowed".